home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 5
/
CD-ROM Today - The Disc (Issue 5)(November 1994).ISO
/
mac
/
Mac shareware
/
Education
/
RLaB
/
help
/
VECTOR
< prev
next >
Wrap
Text File
|
1994-09-21
|
626b
|
27 lines
VECTOR:
A vector (a row matrix) can be created with the shorthand
notation:
d1 : d2
or
d1 : d2 : d3
Where d1 = vector start value
d2 = vector ending value
d3 = vector increment/decrement value
The vector increment value takes precedence when the increment
does not divide evenly into the difference between d1 and d2.
If it is important for the end value (d2) to take precedence,
then use the function linspace.
If d2 > d1, and d3 is not specified, then an empty vector is
created.
If d2 > d1, and d3 > 0, then an empty vector is created.
If d1 > d2, and d3 < 0, then an empty vector is created.